set -x
disk=${1:-disk.img}
echo "Creating disk.img..."
bximage -mode=create -hd=10M -q ${disk}
nasm -I include/ -o mbr.bin mbr.S
dd if=./mbr.bin of=${disk} bs=512 count=1 conv=notrunc
nasm -I include/ -o loader.bin loader.S
dd if=./loader.bin of=${disk} bs=512 count=4 seek=2 conv=notrunc


bochs -f bochsrc.txt
